// 操作记录列表查询参数
export interface OperationRecordRequestData {
  page?: number
  limit?: number
  title?: string
  type?: string
  operator?: string
  start_time?: string
  end_time?: string
}

// 操作记录项
export interface OperationRecordItem {
  id: number
  title: string
  type: string
  content: string
  operator: string
  ip_address: string
  created_at: string
  updated_at: string
}

// 操作记录列表响应数据
export interface OperationRecordResponseData {
  list: OperationRecordItem[]
  total: number
}

// 创建操作记录参数
export interface OperationRecordCreateData {
  title: string
  type: string
  content: string
  operator: string
  ip_address: string
}

// 获取操作记录详情参数
export interface OperationRecordDetailRequestData {
  id: number
}

// 操作记录详情响应数据
export interface OperationRecordDetailResponseData extends OperationRecordItem {
  details?: any
}

// 删除操作记录参数
export interface OperationRecordDeleteData {
  id: number
}

// 批量删除操作记录参数
export interface OperationRecordBatchDeleteData {
  ids: number[]
}

// 清空历史记录参数
export interface OperationRecordClearBeforeData {
  before_time: string
}

// 快速记录操作日志参数
export interface OperationRecordLogData {
  title: string
  type: string
  content: string
  operator: string
}

// 操作统计信息响应数据
export interface OperationRecordStatisticsResponseData {
  total: number
  today: number
  week: number
  month: number
  type_statistics: {
    type: string
    count: number
  }[]
}

// 操作类型选项
export interface OperationTypeOption {
  value: string
  label: string
}

// 操作类型选项响应数据
export interface OperationTypeOptionsResponseData {
  options: OperationTypeOption[]
}
